package Practice;

import stdlib.*;

public class Queue_Array_Test
{
	public static void main(String[] args)
	{
		ResizingArrayQueueOfStrings q = new ResizingArrayQueueOfStrings();
		for (String str : args)
		{
	            if(!str.equals("-"))
	                q.enqueue(str);
	            else if(!q.isEmpty())
	                StdOut.print(q.dequeue()+" ");
		}
		StdOut.println("");
		while (!q.isEmpty())
		{
			StdOut.print(q.dequeue() + " ");
		}
		StdOut.println("");
	}
}
